#!/usr/bin/env python
# Unescape'i http GETist info_hash 
import sys

#r = "3218c21c0276bc6fa13264845b3d8506cc7a8f10"
#a= "2%18%C2%1C%02v%BCo%A12d%84%5B%3D%85%06%CCz%8F%10"

if len(sys.argv) < 2:
    print "Pole hashi."
    sys.exit(1)

split =  sys.argv[-1].split("%") ##a.split("%")

out = ''
for i in split:
    if len(i) == 2:
        out += i
    elif len(i) > 2:
        out += i[:2]
        for j in i[2:]:
            out += hex(ord(j)).replace('0x','')
    else:
        for j in i:
            out += hex(ord(j)).replace('0x','')
print out
